<template>
  <a-card :bordered="false">

    <!-- 查询区域 -->


    <!-- table区域-begin -->
    <div>

      <a-table
        ref="table"
        size="middle"
        bordered
        :columns="columns"
        :dataSource="dataSource"
        :pagination="ipagination"
        :loading="loading"
        @change="handleTableChange">

      </a-table>
    </div>
    <!-- table区域-end -->

    <!-- 表单区域 -->
    <desReportTableModal-modal ref="modalForm" @ok="modalFormOk"></desReportTableModal-modal>
  </a-card>
</template>

<script>
  import DesReportTableModal from './modules/DesReportTableModal'
  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  import JEllipsis from "@/components/jeecg/JEllipsis";

  export default {
    name: "DesReportTableList",
    mixins:[JeecgListMixin],
    components: {
      JEllipsis,
      DesReportTableModal
    },
    data () {
      return {
        description: '订阅查询管理页面',
        // 表头
        columns: [
          {
            title: '#',
            key:'rowIndex',
            width:60,
            align:"center",
            customRender:function (t,r,index) {
              return parseInt(index)+1;
            }
           },
          {
            title: '库名',
            align: 'center',
            dataIndex: 'fdSchema'
          },
          {
            title: '总数',
            align: 'center',
            dataIndex: 'allNum'
          },

          {
            title: '已订阅',
            align: 'center',
            dataIndex: 'dscNum'
          },

          {
            title: '未订阅',
            align: 'center',
            dataIndex: 'resNum'
          },

          {
            title: '已配置',
            align: 'center',
            dataIndex: 'alrNum'
          },

          {
            title: '未配置',
            align: 'center',
            dataIndex: 'surNum'
          },
        ],
		url: {
          list: "/deal/desReportTable/queryStatisticsTable",
       },
        loading:false
    }
  },
  computed: {
    importExcelUrl: function(){
      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
    }
  },
    methods: {

    }
  }
</script>
<style scoped>
  @import '~@assets/less/common.less'
</style>